/*
 * SearchKeyword.java Created on 06-Sep-2004 Copyright 2004 Paul Mukherjee
 *
 * $Revision: 1.2 $
 */
package org.nanhill.support.hibernate.search.demo.filesearch;

import org.nanhill.commons.pattern.search.SearchException;

/**
 * @author pmu
 * 
 */
public class SearchKeyword extends VolumeSearchCriterion {
	private String keyword;

	public SearchKeyword() {
	}

	public SearchKeyword(String keyword) {
		this.keyword = keyword;
	}

	public String getValue() {
		return keyword;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.mukherjee.archivedb.pd.search.ISearch#accept(com.mukherjee.archivedb.pd.search.ISearchVisitor)
	 */
	public void accept(VolumeSearchVisitor visitor) throws SearchException {
		visitor.visitKeyword(this);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.mukherjee.archivedb.pd.search.ISearchCriterion#getDisplay()
	 */
	public String getDisplay() {
		return "Keyword";
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.mukherjee.archivedb.pd.search.ISearchCriterion#getName()
	 */
	public String getName() {
		// TODO Auto-generated method stub
		return "keyword";
	}

	public void setValue(String value) {
		keyword = value;
	}

}
